import { request } from "@/utils/request";

export const GetDoctor = () => {
    return request({
        url: `/api/Doctor`,
        method: 'get'
    })
}

export const PostDoctor = (data: any) => {
    return request({
        url: `/api/Doctor`,
        method: 'post',
        data: data
    })
}

export const PutDoctor = (id: number, data: any) => {
    return request({
        url: `/api/Doctor/${id}`,
        method: 'put',
        data: data
    })
}

export const DeleteDoctor = (id: number) => {
    return request({
        url: `/api/Doctor/${id}`,
        method: 'delete'
    })
}